﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using iSufeMVC4.WebAPI.Models;

namespace iSufeMVC4.WebAPI.Controllers
{
    public class TalkController : ApiController
    {   
        public string Add(NewTalkQuery talk)
        {
            return "SuccessMsg!";
        }

        public ResultList<string> List(UserClassQuery query)
        {
            ResultList<string> results = new ResultList<string>()
            {
                startIndex = 0,
                isEnd = false,
                list = new List<string>(){ "test1", "test2" },
                nextStartIndex = 2
            };
            return results;
        }
    }
}
